<?php
/**
 * 用户管理
 * Created by gii.
 * User: Gii
 * Date: 2023/02/23
 * Time: 16:10
 */

namespace app\admin\model\model\system;

use app\admin\model\entity\system\UserEntity;
use app\admin\model\traits\Common;
use think\Model;

class User extends Model
{
    use Common;
    use UserEntity;

    protected $name = 'system_user';

    const IS_LOGOFF_YES = 1;
    const IS_LOGOFF_NO = 0;

	public static function status($id, $status) {
        $data = [
            'id' => $id,
            'status' => $status,
        ];
        self::updateCommon($data);
        return true;
    }
}
